# Contributor: Thomas Aldrian <aldrian.thom@proton.me>
# Maintainer: team/gnome <aldrian.thom@proton.me>
pkgname=snapshot
pkgver=46.3
pkgrel=0
pkgdesc="Take pictures and videos"
url="https://gitlab.gnome.org/GNOME/snapshot"
arch="all !s390x"
license="GPL-3.0-or-later"
makedepends="
	cargo
	desktop-file-utils
	glib-dev
	gst-plugins-bad-dev
	gst-plugins-base-dev
	gstreamer-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	"
depends="
	gst-plugin-pipewire
	gst-plugins-bad
	pipewire
	"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/snapshot/${pkgver%%.*}/snapshot-$pkgver.tar.xz"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	cargo test
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
d2fc212727d90ec403f743b8fe92fbdd47d3e8bb80b79b21035be8f9f97c682011c72a7f07d2dd44c963464312c18043ebd5de1ecffb52f1dfe2b2a799690e5f  snapshot-46.3.tar.xz
"
